package com.ytclub.subject.application.convert;

import com.ytclub.subject.application.dto.SubjectCategoryDTO;
import com.ytclub.subject.application.dto.SubjectLabelDTO;
import com.ytclub.subject.domain.entity.SubjectCategoryBO;
import com.ytclub.subject.domain.entity.SubjectLabelBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 标签DTO的转换
 *
 * @author: HuangQi
 * @date: Created in 21:23 2023/12/14
 * @description: 标签DTO的转换
 */
@Mapper
public interface SubjectLabelDTOConvert {
    SubjectLabelDTOConvert INSTANCE = Mappers.getMapper(SubjectLabelDTOConvert.class);

    SubjectLabelBO convertDTOToLabelBO(SubjectLabelDTO subjectLabelDTO);

    List<SubjectLabelDTO> convertBOToLabelyDTO(List<SubjectLabelBO> subjectLabelBOList);

}
